import { useRouter } from "expo-router";
import { useEffect } from "react";
import { Text, View } from "react-native";


export default function Index() {
    const router = useRouter();

    async function hideAndNavigate() {
        setTimeout(async () => {
            router.replace("/(tabs)");    // 跳转到主页面
        }, 2000);
    }
    useEffect(() => {
        hideAndNavigate();
    }, []);

    return (
        <View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
            <Text>欢迎页面</Text>
        </View>
    );
}